using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class ModDisturbSetting : GeneratedMessageLite<ModDisturbSetting, ModDisturbSetting.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<ModDisturbSetting, ModDisturbSetting.Builder>
		{
			private bool resultIsReadOnly;
			private ModDisturbSetting result;
			protected override ModDisturbSetting.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override ModDisturbSetting MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override ModDisturbSetting DefaultInstanceForType
			{
				get
				{
					return ModDisturbSetting.DefaultInstance;
				}
			}
			public DisturbSetting DisturbSetting
			{
				get
				{
					return this.result.DisturbSetting;
				}
				set
				{
					this.SetDisturbSetting(value);
				}
			}
			public Builder()
			{
				this.result = ModDisturbSetting.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(ModDisturbSetting cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private ModDisturbSetting PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					ModDisturbSetting other = this.result;
					this.result = new ModDisturbSetting();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override ModDisturbSetting.Builder Clear()
			{
				this.result = ModDisturbSetting.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override ModDisturbSetting.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new ModDisturbSetting.Builder(this.result);
				}
				return new ModDisturbSetting.Builder().MergeFrom(this.result);
			}
			public override ModDisturbSetting BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override ModDisturbSetting.Builder MergeFrom(IMessageLite other)
			{
				if (other is ModDisturbSetting)
				{
					return this.MergeFrom((ModDisturbSetting)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override ModDisturbSetting.Builder MergeFrom(ModDisturbSetting other)
			{
				return this;
			}
			public override ModDisturbSetting.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override ModDisturbSetting.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(ModDisturbSetting._modDisturbSettingFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = ModDisturbSetting._modDisturbSettingFieldTags[num2];
					}
					uint num3 = num;
					if (num3 == 0u)
					{
						throw InvalidProtocolBufferException.InvalidTag();
					}
					if (num3 != 10u)
					{
						if (WireFormat.IsEndGroupTag(num))
						{
							return this;
						}
						this.ParseUnknownField(input, extensionRegistry, num, text);
					}
					else
					{
						DisturbSetting.Builder builder = DisturbSetting.CreateBuilder();
						if (this.result.hasDisturbSetting)
						{
							builder.MergeFrom(this.DisturbSetting);
						}
						input.ReadMessage(builder, extensionRegistry);
						this.DisturbSetting = builder.BuildPartial();
					}
				}
				return this;
			}
			public ModDisturbSetting.Builder SetDisturbSetting(DisturbSetting value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasDisturbSetting = true;
				this.result.disturbSetting_ = value;
				return this;
			}
			public ModDisturbSetting.Builder SetDisturbSetting(DisturbSetting.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasDisturbSetting = true;
				this.result.disturbSetting_ = builderForValue.Build();
				return this;
			}
			public ModDisturbSetting.Builder MergeDisturbSetting(DisturbSetting value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasDisturbSetting && this.result.disturbSetting_ != DisturbSetting.DefaultInstance)
				{
					this.result.disturbSetting_ = DisturbSetting.CreateBuilder(this.result.disturbSetting_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.disturbSetting_ = value;
				}
				this.result.hasDisturbSetting = true;
				return this;
			}
			public ModDisturbSetting.Builder ClearDisturbSetting()
			{
				this.PrepareBuilder();
				this.result.hasDisturbSetting = false;
				this.result.disturbSetting_ = null;
				return this;
			}
		}
		public const int DisturbSettingFieldNumber = 1;
		private static readonly ModDisturbSetting defaultInstance;
		private static readonly string[] _modDisturbSettingFieldNames;
		private static readonly uint[] _modDisturbSettingFieldTags;
		private bool hasDisturbSetting;
		private DisturbSetting disturbSetting_;
		private int memoizedSerializedSize = -1;
		public static ModDisturbSetting DefaultInstance
		{
			get
			{
				return ModDisturbSetting.defaultInstance;
			}
		}
		public override ModDisturbSetting DefaultInstanceForType
		{
			get
			{
				return ModDisturbSetting.DefaultInstance;
			}
		}
		protected override ModDisturbSetting ThisMessage
		{
			get
			{
				return this;
			}
		}
		public DisturbSetting DisturbSetting
		{
			get
			{
				return this.disturbSetting_ ?? DisturbSetting.DefaultInstance;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasDisturbSetting && this.DisturbSetting.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasDisturbSetting)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.DisturbSetting);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private ModDisturbSetting()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] modDisturbSettingFieldNames = ModDisturbSetting._modDisturbSettingFieldNames;
			if (this.hasDisturbSetting)
			{
				output.WriteMessage(1, modDisturbSettingFieldNames[0], this.DisturbSetting);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasDisturbSetting)
			{
				num ^= this.disturbSetting_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			ModDisturbSetting modDisturbSetting = value as ModDisturbSetting;
			return modDisturbSetting != null && (this.hasDisturbSetting == modDisturbSetting.hasDisturbSetting && (!this.hasDisturbSetting || this.disturbSetting_.Equals(modDisturbSetting.disturbSetting_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<ModDisturbSetting, ModDisturbSetting.Builder>.PrintField("DisturbSetting", this.hasDisturbSetting, this.disturbSetting_, writer);
		}
		public static ModDisturbSetting ParseFrom(byte[] data)
		{
			return ModDisturbSetting.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private ModDisturbSetting MakeReadOnly()
		{
			return this;
		}
		public static ModDisturbSetting.Builder CreateBuilder()
		{
			return new ModDisturbSetting.Builder();
		}
		public override ModDisturbSetting.Builder ToBuilder()
		{
			return ModDisturbSetting.CreateBuilder(this);
		}
		public override ModDisturbSetting.Builder CreateBuilderForType()
		{
			return new ModDisturbSetting.Builder();
		}
		public static ModDisturbSetting.Builder CreateBuilder(ModDisturbSetting prototype)
		{
			return new ModDisturbSetting.Builder(prototype);
		}
		static ModDisturbSetting()
		{
			ModDisturbSetting.defaultInstance = new ModDisturbSetting().MakeReadOnly();
			ModDisturbSetting._modDisturbSettingFieldNames = new string[]
			{
				"DisturbSetting"
			};
			ModDisturbSetting._modDisturbSettingFieldTags = new uint[]
			{
				10u
			};
			object.ReferenceEquals(micromsg.Proto.ModDisturbSetting.Descriptor, null);
		}
	}
}
